<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>2D变换_扭曲</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .outer{
            width: 300px;
            height: 300px;
            border:2px solid black;
            margin: 800px;

        }
        .inner{
            width: 300px;
            height: 300px;
            background-color: deepskyblue;
            text-align: center;
            line-height: 300px;
            margin: auto;
            /*
            扭曲,就像两个小人在左上和右下拉扯边框进而走形,水平x/垂直y 拉扯
            在实际开发中用的不多
            */
            transform: skew(0deg,0deg);
        }
    </style>
</head>
<body>
<div class="outer">
    <div class="inner">inner</div>
</div>

</body>
</html>